package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 系统背景图对象 t_back
 * 
 * @author ruoyi
 * @date 2023-11-29
 */
@TableName("t_back")
public class TBack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址 */
    @Excel(name = "地址")
    private String url;

    /** 是否可用，0可用，1不可用 */
    @Excel(name = "是否可用，0可用，1不可用")
    private String isEnable;

    /** 商品code */
    @Excel(name = "商品code")
    private String code;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setIsEnable(String isEnable) 
    {
        this.isEnable = isEnable;
    }

    public String getIsEnable() 
    {
        return isEnable;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("url", getUrl())
            .append("isEnable", getIsEnable())
            .append("id", getId())
            .toString();
    }
}
